home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
ici
/
ici.cpi
/
Makefile.sun
< prev
next >
Wrap
Makefile
|
1994-10-27
|
4KB
|
99 lines
#
# For compiling a standard version on a Sun using gcc.
#
FLAVOUR = sun
TARGET = ici.$(FLAVOUR)
LIB = lib$(FLAVOUR).a
CONFIG = conf-$(FLAVOUR).h
CC = gcc -pipe
LIBS = -lm -ltermcap
CFLAGS = -g -O2 -DCONFIG_FILE='"$(CONFIG)"'
LDFLAGS =
RANLIB = ranlib
RM = rm -f
#
# The remainder of this makefile is pretty well generic...
#
OBJS = \
$(LIB)(alloc.o) $(LIB)(arith.o) $(LIB)(array.o) $(LIB)(call.o) \
$(LIB)(catch.o) $(LIB)(cfunc.o) $(LIB)(clib.o) $(LIB)(clib2.o) \
$(LIB)(compile.o) $(LIB)(conf.o) $(LIB)(control.o) $(LIB)(exec.o) \
$(LIB)(exerror.o) $(LIB)(file.o) $(LIB)(float.o) $(LIB)(forall.o) \
$(LIB)(func.o) $(LIB)(icimain.o) $(LIB)(init.o) $(LIB)(int.o) \
$(LIB)(lex.o) $(LIB)(main.o) $(LIB)(mark.o) $(LIB)(mem.o) \
$(LIB)(mkstruct.o) $(LIB)(mkvar.o) $(LIB)(nptrs.o) $(LIB)(null.o) \
$(LIB)(object.o) $(LIB)(op.o) $(LIB)(parse.o) $(LIB)(pc.o) \
$(LIB)(ptr.o) $(LIB)(regexp.o) $(LIB)(set.o) $(LIB)(sfile.o) \
$(LIB)(skt.o) $(LIB)(smash.o) $(LIB)(src.o) $(LIB)(string.o) \
$(LIB)(struct.o) $(LIB)(syscall.o) $(LIB)(syserr.o) $(LIB)(ti.o) \
$(LIB)(trace.o) $(LIB)(unary.o) $(LIB)(win.o) \
$(LIB)(wrap.o)
.PRECIOUS: $(LIB)
$(TARGET): $(LIB)
$(CC) $(LDFLAGS) -o $@ $(LIB) $(LIBS)
.c.a :;
$(LIB) : $(OBJS)
$(CC) -c $(CFLAGS) $(?:.o=.c)
$(AR) r $@ $?
$(RANLIB) $@
$(RM) $?
#
# No mention of fwd.h or alloc.h, but everything depends on it.
#
$(LIB)(alloc.o) : trace.h
$(LIB)(arith.o) : exec.h float.h int.h op.h parse.h ptr.h str.h struct.h buf.h binop.h
$(LIB)(array.o) : ptr.h exec.h op.h int.h buf.h
$(LIB)(call.o) : buf.h exec.h func.h int.h float.h str.h null.h op.h
$(LIB)(catch.o) : exec.h catch.h op.h func.h
$(LIB)(cfunc.o) : exec.h func.h str.h int.h float.h struct.h set.h op.h ptr.h buf.h file.h re.h null.h parse.h mem.h
$(LIB)(clib.o) : file.h func.h op.h int.h float.h str.h buf.h exec.h
$(LIB)(clib2.o) : buf.h func.h
$(LIB)(compile.o) : parse.h array.h op.h str.h
$(LIB)(conf.o) : func.h
$(LIB)(control.o) : exec.h op.h int.h buf.h pc.h struct.h null.h forall.h catch.h
$(LIB)(exec.o) : exec.h op.h catch.h ptr.h func.h str.h buf.h pc.h int.h struct.h set.h parse.h float.h re.h src.h null.h forall.h trace.h binop.h
$(LIB)(exerror.o) : str.h buf.h
$(LIB)(file.o) : file.h
$(LIB)(float.o) : float.h
$(LIB)(forall.o) : exec.h struct.h set.h forall.h str.h buf.h
$(LIB)(func.o) : func.h exec.h ptr.h struct.h op.h pc.h str.h catch.h buf.h mark.h null.h
$(LIB)(icimain.o) : ptr.h exec.h file.h str.h struct.h buf.h wrap.h func.h
$(LIB)(init.o) : func.h buf.h struct.h multi.h
$(LIB)(int.o) : int.h
$(LIB)(lex.o) : parse.h file.h buf.h src.h array.h trace.h
$(LIB)(mark.o) : mark.h
$(LIB)(mem.o) : mem.h int.h buf.h
$(LIB)(mkstruct.o) : object.h
$(LIB)(mkvar.o) : exec.h struct.h
$(LIB)(nptrs.o) :
$(LIB)(null.o) : null.h
$(LIB)(object.o) : exec.h buf.h int.h str.h float.h func.h multi.h
$(LIB)(op.o) : op.h exec.h
$(LIB)(parse.o) : parse.h func.h str.h struct.h buf.h file.h op.h exec.h
$(LIB)(pc.o) : exec.h pc.h
$(LIB)(ptr.o) : exec.h ptr.h struct.h int.h op.h buf.h
$(LIB)(regexp.o) : str.h re.h exec.h op.h buf.h
$(LIB)(set.o) : object.h set.h op.h int.h buf.h null.h
$(LIB)(sfile.o) : file.h
$(LIB)(skt.o) : buf.h exec.h op.h fwd.h func.h int.h set.h struct.h str.h skt.h
$(LIB)(smash.o) :
$(LIB)(src.o) : exec.h src.h
$(LIB)(string.o) : str.h struct.h exec.h int.h
$(LIB)(struct.o) : struct.h ptr.h exec.h func.h op.h int.h buf.h str.h pc.h
$(LIB)(syscall.o) : func.h op.h exec.h
$(LIB)(syserr.o) :
$(LIB)(ti.o) : acs.h exec.h func.h int.h wrap.h buf.h
$(LIB)(trace.o) : func.h object.h trace.h file.h set.h struct.h array.h re.h str.h int.h float.h exec.h op.h
$(LIB)(unary.o) : exec.h float.h int.h op.h parse.h buf.h null.h
$(LIB)(win.o) : exec.h op.h str.h win.h acs.h buf.h func.h int.h wrap.h
$(LIB)(wrap.o) : wrap.h